import Vue from "vue";
import Vuex from "vuex";
import modules, { IState } from "./modules";
import customModules, { IState as customState } from "@/frame-config/store";
import pathify from "@/vue-config/plugins/vuex-pathify";

Vue.use(Vuex);

const store = new Vuex.Store<IState & customState>({
  modules: { ...modules, ...customModules },
  plugins: [pathify.plugin]
});

window.store = store;

export default store;
